
function pageModeInit(modeType,document){
    console.log(">>>>>>>>>pageModeInit:",modeType,document)
    var elements = document.querySelectorAll('input, textarea');
    if(modeType!='edit'){
        //将dom中所有input 设置为disabled
        for(var i=0;i<elements.length;i++){
            elements[i].disabled=true;
            elements[i].classList.add("readonlyInput");
            elements[i].classList.remove("editInput");
        }
    }else{
        for(var i=0;i<elements.length;i++){
            elements[i].disabled=false;
            elements[i].classList.remove("readonlyInput");
            elements[i].classList.add("editInput");
            
        }
    }
}